package com.example.user.mapper;


import com.example.user.entity.Order;
import com.example.user.request.CartRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface OrderMapper {


    List<Order> getOrderPage(@Param("userId") Integer userId);

    int insertOrder(@Param("cartRequest") CartRequest cartRequest);

    int createOrderItems(@Param("order") Order order);

    int updateOrderStatusByUser(@Param("order") Order order);
}
